package org.microframework.base.core.constant;

/**
 * 权限相关通用常量
 */
public class SecurityConstants {
    /**
     * 内部请求来源标志
     */
    public static final String INNER = "inner";

    /**
     * 请求来源
     */
    public static final String FROM_SOURCE = "from-source";

    /**
     * 授权令牌
     */
    public static final String AUTHORIZATION = "Authorization";

    /**
     * 用户ID字段
     */
    public static final String DETAILS_USER_ID = "user_id";

    /**
     * 用户名字段
     */
    public static final String DETAILS_USERNAME = "username";

    /**
     * 用户标识
     */
    public static final String USER_KEY = "user_key";

    /**
     * 认证类型
     */
    public static final String AUTHENTICATION_TYPE = "authentication_type";

    /**
     * 用户token
     */
    public static final String TOKEN_KEY = "token";
} 